How do you write byte[] array using log4.net
Posted
by like.no.other
on Stack Overflow
See other posts from Stack Overflow
or by like.no.other
Published on 2010-04-13T21:18:56Z
Indexed on
2010/04/13
21:23 UTC
Read the original article
Hit count: 312
Hi,
I have a byte[] with some data in it, I would like to write this byte array AS-IS to the log file using log4.net. The problems that i am facing is that
There are no overload for byte[] in TextWriter, so even implementing an IObjectRenderer is of no use. I dont have access to the underlying Stream object of Log4.net Also tried converting byte[] into char[] still when i write it, it adds an extra byte.
Is this even possible with Log4.net.
Thanx in Advance.
© Stack Overflow or respective owner